package day5;

import org.junit.Test;

public class shuzu {
	public static void main(String[] args) {
		int array[] = {5,5,6,6,6,6,6,6,6,6,2,2};
		
		 
		 for(int i = array.length-1;i >= 0; i--) {
			 System.out.println(array[i]);
		 }
	 }
		
		@Test
		public void test() {
			int array[] = new int[4];
			array[0] = 89;
			array[1] = 78;
			array[2] = 99;
			array[3] = 89;
			int num = 0;
			for(int i = 0;i <= array.length - 1;i++) {
			num += array[i];
			}
			System.out.println(num);
		}
}

